package map;

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
import java.util.function.BiConsumer;

public class FiftyJapanLetter {
	static int score = 0;
	
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		Map<String,String> jls = new HashMap<>();
		jls.put("あ", "a");
		jls.put("ア", "a");
		jls.put("い", "i");
		jls.put("イ", "i");
		jls.put("う", "u");
		jls.put("ウ", "u");
		jls.put("え", "e");
		jls.put("エ", "e");
		jls.put("お", "o");
		jls.put("オ", "o");
		
		jls.forEach(new BiConsumer<String, String>() {
			@Override
			public void accept(String key, String value) {
				System.err.println("请输入:[" + key +"]的发音");
				String input = scan.next();
				if (input.equals(value)) {
					System.out.println("您答对了,加10分");
					score += 10;
				}else {
					System.out.println("您答错了");
				}
			}
		});
		
		System.out.println("您的最后成绩：" + score);
	}
}
